//
// Copyright (c) 2024 BPer
//

#ifndef INCLUDE_BPERUTIL_BPERMEMORY_H_
#define INCLUDE_BPERUTIL_BPERMEMORY_H_

#include <string.h>
#define bPer_memcpy memcpy
#define bPer_malloc malloc
#define bPer_calloc calloc
#define BPerfree    free
#define bPer_memset memset
#define bPer_memmove memmove
#define bPer_memcmp memcmp
#define bPer_realloc realloc


#define bPer_strcat strcat
#define bPer_strncat strncat
#define bPer_strcpy strcpy
#define bPer_strncpy strncpy
#define bPer_strlen strlen
#define bPer_strnlen strnlen
#define bPer_strchr strchr
#define bPer_strnchr strnchr
#define bPer_strrchr strrchr
#define bPer_strcmp strcmp
#define bPer_strncmp strncmp
#define bPer_printf  printf
#define bPer_sprintf sprintf_s
#define bPer_snprintf snprintf
#define bPer_vsnprintf vsnprintf
#define bPer_sscanf   sscanf
#define bPer_trimstrall trimstrall
#define bPer_ltrimstr   ltrimstr
#define bPer_rtrimstr   rtrimstr
#define bPer_strstr strstr

#define bPer_tolower    tolower
#define bPer_toupper toupper

#define bPer_atoi atoi
#define bPer_atol atol

#define bPer_static_strlen(string_literal) (sizeof(string_literal) - sizeof(""))


#endif /* INCLUDE_BPERUTIL_BPERMEMORY_H_ */
